package br.com.dev.tcc.view.dialog;

import android.app.Dialog;
import android.content.Context;
import android.view.Window;
import android.widget.TextView;
import br.com.dev.tcc.R;

public class SettingsDialog extends Dialog {

	public SettingsDialog(Context context) {

		super(context, R.style.DialogAppTheme);

		super.getWindow();
		super.requestWindowFeature(Window.FEATURE_NO_TITLE);
		super.setContentView(R.layout.conn_dialog);
	}

	public void setPositiveButtonListener(
			android.view.View.OnClickListener listener) {

		findViewById(R.id.btSim).setOnClickListener(listener);
	}

	public void setNegativeButtonListener(
			android.view.View.OnClickListener listener) {

		findViewById(R.id.btNao).setOnClickListener(listener);
	}

	public void setMessage(int textResId){
		
		((TextView) findViewById(R.id.message)).setText(textResId);
	}
	
	public void show() {

		super.show();
	}
}
